<ul>
<?php
	if(get_user_rights(RIGHTS_USER)) {
?>
<li><a href="user_detail.php?players_id=<?php echo get_player_id_from_user_id() ?>">View My Loot</a></li>
<?php
	}
	if(get_user_rights(RIGHTS_OFFICER)) {
?>
<li><a href="import_form.php">Import a Raid</a></li>
<li><a href="loot_report.php">Loot Report</a></li>
<li><a href="add_loot.php">Add Loot Manually</a></li>
<li><a href="loot_search.php">Search Loot by item</a></li>
<?php
	}
	if(get_user_rights(RIGHTS_ADMIN)) {
?>
<li><a href="update/">Update the site</a></li>
<li><a href="edit_user.php">User Maintenance</a></li>
<?php
	}
	if(get_user_rights(RIGHTS_USER)) {
?>
<li><a href="change_password.php">Change Password</a></li>
<?php
	}
?>
</ul>
<?php
if(!$_SESSION["login_id"] || get_user_id() == -1) {
	$remote_ip = $_SERVER['REMOTE_ADDR'];
	$login_id = "-1_" . $remote_ip;
	$_SESSION["login_id"] = $login_id;
?>
		<form action="login_process.php" method="post">
				Username:
				<input type="text" size="10" value="" name="username" id="username" />
				Password:
				<input type="password" size="10" value="" name="password" id="password" />
			<INPUT type="submit" value="Login">
		</form>
<?php
}
else {
?>
	<form action="logout_process.php" method="post">
		<INPUT type="submit" value="Logout">
	</form>
<?php
}
?>
